this.forFeedback = false;
this.expanded = false;
this.focused = false;
- this.acknowledged = false;
+ this._acknowledged = false;
this._destroyed = false;
this._customContent = false;
this.bannerBodyText = null;
return this.addButton(button, callback);
},
+ get acknowledged() {
+ return this._acknowledged;
+ },
+
+ set acknowledged(v) {
+ if (this._acknowledged == v)
+ return;
+ this._acknowledged = v;
+ this.emit('acknowledged-changed');
+ },
+
setUrgency: function(urgency) {
this.urgency = urgency;
},
return;
notification.connect('destroy', Lang.bind(this, this._onNotificationDestroy));
+ notification.connect('acknowledged-changed', Lang.bind(this, this.countUpdated));
this.notifications.push(notification);
this.emit('notification-added', notification);